<!DOCTYPE html>
<html lang="en">
<?php 
session_start();
require '../execute/auth.php';
ob_start();
require_once('../inc/config.inc');
//Connect to mysql server
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
if(!$link) {
	die('Failed to connect to server: ' . mysql_error());
}

//Select database
$db = mysql_select_db(DB_DATABASE);
if(!$db) {
	die("Unable to select database");
}
?>
<!-- Mirrored from leviatz.com/flatpoint/dashboard_5.html by HTTrack Website Copier/3.x [XR&CO'2013], Fri, 26 Jul 2013 20:06:20 GMT -->
<head>
    <meta charset="utf-8">
    <title>Appointme - Online Appointment Scheduling System</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
<script src="../assets/jsflatpoint_core.js"></script>

    <script src="../assets/jsforms.js"></script>
    <script src="../assets/jscalendar.js"></script>
    <!-- Le styles -->
    <link href="../assets/css/bootstrap.css" rel="stylesheet">
    <link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="../assets/css/stylesheet.css" rel="stylesheet">
    <link href="../assets/icon/font-awesome.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>

    <!-- Le fav and touch icons -->
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/img/apple-touch-icon-144-precomposed.html">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/img/apple-touch-icon-114-precomposed.png">
      <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/img/apple-touch-icon-72-precomposed.html">
                    <link rel="apple-touch-icon-precomposed" href="../assets/img/apple-touch-icon-57-precomposed.html">
                                   <link rel="shortcut icon" href="../assets/img/favicon.png">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="../assets/jshtml5shiv.js"></script>
    <![endif]-->
  </head>

  <body>

    <header class="green"> <!-- Header start -->
        <div class="container">
            <a href="#" class="logo_image"><span class="hidden-480">Appointme</span></a>
            <ul class="header_actions">
                <li style="display: none" rel="tooltip" data-placement="bottom" title="2 new appointments" class="messages"><a class="iconic" href="#"><i class="icon-bell-alt"></i> 2</a>
                    <ul class="dropdown-menu pull-right messages_dropdown">
                        <li>
                            <a href="#">
                                <img src="../assets/demo/avatar_06.png" alt="">
                                <div class="details">
                                    <div class="name">Jane Doe</div>
                                    <div class="message">
                                        Lorem ipsum Commodo quis nisi...
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <img src="../assets/demo/avatar_05.png" alt="">
                                <div class="details">
                                    <div class="name">Jane Doe</div>
                                    <div class="message">
                                        Lorem ipsum Commodo quis nisi...
                                    </div>
                                </div>
                            </a>
                        </li>
                        <a href="#" class="btn btn-block blue align_left"><span>Appointments</span></a>
                    </ul>
                </li>
                <?php $qryimg = mysql_query("SELECT * FROM `users` WHERE id='".$_SESSION['USER_ID']."'"); 
          		$row=mysql_fetch_array($qryimg);
          		if(!$qryimg){
echo mysql_error();
}
                ?>
                <li class="dropdown"><a href="#"><i class="icon-user"></i> &nbsp; <?php echo $row['firstname'] . " " . $row['lastname']; ?><i class="icon-angle-down"></i></a>
                    <ul>
                        <li><a href="profile.php"><i class="icon-cog"></i> Settings</a></li>
                        <li><a href="appointees.php"><i class="icon-inbox"></i> Appointments</a></li>
                        <li><a href="../execute/logout.php"><i class="icon-signout"></i> Logout</a></li>
                    </ul>
                </li>
                <li><a href="../execute/logout.php"><i class="icon-signout"></i> <span class="hidden-768 hidden-480">Logout</span></a></li>
                <li class="responsive_menu"><a class="iconic" href="#"><i class="icon-reorder"></i></a></li>
            </ul>
        </div>
    </header>
    <div class="container">